<#if inputFlag == 'input' >
	<script language='javascript'>
		$(document).ready(function()
		  {
			  $("#divisioncode").empty();
			   $("<option value=' ' >未選択</option>").appendTo('#divisioncode');
			    
			    <#list divisionlist as division><#t/>
			
					            <#if division.id.divisioncode == compaeve.htnifdivision>
							$("<option value='${division.id.divisioncode?html}' selected='selected'>${division.divisionname?html}</option>").appendTo('#divisioncode');
							<#else>
							$("<option value='${division.id.divisioncode?html}' >${division.divisionname?html}</option>").appendTo('#divisioncode');
					            </#if>
				</#list>

				  $("#groupcode").empty();
				    $("<option value=' ' >未選択</option>").appendTo('#groupcode');
				     
				     <#list grouplist as group><#t/>
				
					         <#if group.id.groupcode == compaeve.htnifgroup>
							$("<option value='${group.id.groupcode?html}' selected='selected'>${group.groupname?html}</option>").appendTo('#groupcode');
							<#else>
							$("<option value='${group.id.groupcode?html}'>${group.groupname?html}</option>").appendTo('#groupcode');
					            </#if>
				     </#list>
				    
		    }
		);   
	</script
</#if>